
module.exports = (options,app) => {
  return async function serverTimestamp (ctx,next) {
    const _timestamp = new Date().getTime();
    await next();
    ctx.set('X-Server-Time', _timestamp);
  }
}